void YakobiMethod(double[] v, int n, int S, int S*,double Eps, double Eps*, char cause);
{
  double h = 1. / n;
  double b = 5;
  double a = - 1 / ( 2. / h + 7);
  double [] v_new = new double [n + 1];
  char f = 0;
  double eps_cur;
  v[0] = v_new [0] = 1;
  v[n] = v_new [n] = 13;
  while (!f)
  {
    for (int i = 1; i < n - 1; i++)
	{
	  v_new[i] = a * (b - n * n * (v[i - 1] + v[i + 1]);
	  eps_cur = fabs (v_new[i] - v[i]);
	  if (eps_cur > Eps)
	  {
	    Eps = eps_cur;
	  }
	}
	v_new.CopyTo (v, 0);
	S++;
	if (Eps < Eps*) 
	{
	  f = 1;
	}
	else if (S > S*)
	{
	  f = 2;
	}
  }
  cause = f - 1;
}